import unittest
from comment import log_set
from comment import send
from BeautifulReport import BeautifulReport

if __name__ == '__main__':
    log_set()
    suit=unittest.defaultTestLoader.discover(start_dir='', pattern='test*.py')
    run=BeautifulReport(suit)
    run.report(description='测试报告', filename='baogao.html', report_dir='')
    send(['log.txt','baogao.html'])